<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<p id='demo'>连接字符串</p>
		<input type="text" id="i1">
		<input type="text" id="i2">
		<script type="text/javascript">
			function mm() {
				var x = document.getElementById('i1').value;
				var y = document.getElementById('i2').value;
				x = x + y;
				document.getElementById('demo').innerHTML = x;
			}
		</script>
		<button onclick="mm()">连接字符串</button>
	</body>
</html>